Klasse PdfcException
java.lang.Object
java.lang.Throwable
java.lang.Exception
com.inet.error.BaseException
com.inet.pdfc.error.PdfcException
- Alle implementierten Schnittstellen:
com.inet.error.HasErrorCode, Serializable
public class PdfcException
extends com.inet.error.BaseException
Primary exception type to send exceptions with a numeric cause. This cause can be used to show additional help or
info on a certain type of error
- Seit:
- 4.0
- Siehe auch:
-
Konstruktorübersicht
KonstruktorenModifikatorKonstruktorBeschreibungprotectedPdfcException(@Nonnull com.inet.error.ErrorCode errorCode, @Nullable Object... params) Creates the exception with an error codeprotectedPdfcException(@Nonnull com.inet.error.ErrorCode errorCode, @Nullable Throwable cause, @Nullable Object... params) Creates the exception with error code and root causeprotectedPdfcException(@Nullable Throwable cause) Creates a new general or wrapped exception from a cause. -
Methodenübersicht
Modifikator und TypMethodeBeschreibungstatic PdfcExceptionCreates the exception with an error code.static PdfcExceptioncreate(@Nonnull com.inet.error.ErrorCode errorCode, @Nullable Throwable cause, @Nullable Object... params) Creates the exception with error code and root cause.
If cause is already aPdfcExceptionthen returns cause.
Else if cause has anHasErrorCode, takes the code of cause instead of the given code.
DOES NOT THROW THE EXCEPTION!static PdfcExceptionCreates a general exception from a cause.Von Klasse geerbte Methoden com.inet.error.BaseException
getErrorCodeVon Klasse geerbte Methoden Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Konstruktordetails
-
PdfcException
Creates the exception with an error code- Parameter:
errorCode- the code to be setparams- additional parameters to append to the error message- Seit:
- 4.0
-
PdfcException
protected PdfcException(@Nonnull com.inet.error.ErrorCode errorCode, @Nullable Throwable cause, @Nullable Object... params) Creates the exception with error code and root cause- Parameter:
errorCode- the code to be setcause- the causing exceptionparams- additional parameters to append to the error message- Seit:
- 4.0
-
PdfcException
Creates a new general or wrapped exception from a cause. If cause is instance of HasErrorCode then that error code and message is used. In the other case the default error code is used with a user friendly message from the cause as parameter.- Parameter:
cause- the causing exception,nullis valid but discouraged- Seit:
- 4.0
- Siehe auch:
-
-
Methodendetails
-
create
public static PdfcException create(@Nonnull com.inet.error.ErrorCode errorCode, @Nullable Object... params) Creates the exception with an error code. DOES NOT THROW THE EXCEPTION!- Parameter:
errorCode- the code to be setparams- additional parameters to append to the error message- Gibt zurück:
- a new Exception object
- Seit:
- 4.0
-
create
public static PdfcException create(@Nonnull com.inet.error.ErrorCode errorCode, @Nullable Throwable cause, @Nullable Object... params) Creates the exception with error code and root cause.
If cause is already aPdfcExceptionthen returns cause.
Else if cause has anHasErrorCode, takes the code of cause instead of the given code.
DOES NOT THROW THE EXCEPTION!- Parameter:
errorCode- the code to be setcause- the causing exceptionparams- additional parameters to append to the error message- Gibt zurück:
- a new created exception or passed in cause if cause is an instance of PdfcException
- Seit:
- 4.0
-
create
Creates a general exception from a cause.
If cause is already aPdfcExceptionthen returns cause.
Else if cause has anHasErrorCode, then the code of cause is used.
In the other case the default error code is used with a user friendly message from the cause as parameter.
DOES NOT THROW THE EXCEPTION!- Parameter:
cause- the causing exception,nullis valid but discouraged- Gibt zurück:
- a new created exception or passed in cause if cause is an instance of PdfcException
- Seit:
- 4.0
-